import 'package:json_annotation/json_annotation.dart';
part 'activity_model.g.dart';

@JsonSerializable()
class ActivityModel {
  int id;
  int activityType;
  int startTime;
  int endTime;
  int activityStatus;
  int createTime;

  ActivityModel({
    this.id,
    this.activityType,
    this.startTime,
    this.endTime,
    this.activityStatus,
    this.createTime,
  });

  factory ActivityModel.fromJson(Map<String, dynamic> json) =>
      _$ActivityModelFromJson(json);
  Map<String, dynamic> toJson() => _$ActivityModelToJson(this);
}

//json_annotation

//dev_dependencies:
//build_runner: ^1.7.2
//json_serializable: ^2.2.0  
// 根目录执行 flutter packages pub run build_runner build --delete-conflicting-outputs